<template>
	<div>
		<a-radio-group
			default-value="1"
			button-style="solid"
			style="min-width: 20vw"
			@change="changeRadio"
		>
			<a-radio-button value="1">已成交</a-radio-button>
			<a-radio-button value="0"> 未成交 </a-radio-button>
			 
		</a-radio-group>
	</div>
</template>
<script>
import {
	defineComponent,
	reactive,
	ref,
	computed,
	onMounted,
	getCurrentInstance
} from 'vue'

export default defineComponent({
	props: {
		dateshow: {
			type: Boolean,
			default: function () {
				return false
			}
		},
		alldateshow: {
			type: Boolean,
			default: function () {
				return false
			}
		},
		model: {
			type: Object,
			default: function () {
				return {}
			}
		}
	},
	emits:{
      "emitadio":null
	},
	setup(props, context) {
		const offdate = computed(() => {
			return props.dateshow
		})
		const alldate = computed(() => {
			return props.alldateshow
		})
		const changeRadio=(n)=>{
	 
			context.emit("emitadio",n.target.value)
       
		}
		return {
			offdate,
			alldate,
			changeRadio
		}
	}
})
</script>
 